package com.luozongyao.sysInform.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luozongyao.sysInform.entity.Inform;
import com.luozongyao.sysInform.mapper.InformMapper;
import com.luozongyao.sysInform.service.InformService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luozongyao
 * @since 2021-11-14
 */
@Service
public class InformServiceImpl extends ServiceImpl<InformMapper, Inform> implements InformService {



//    @Override
//    public boolean sendSystemMessage(Inform inform) {
//        String informTitle = inform.getInformTitle();
//        String informContent = inform.getInformContent();
//        List<User> list = userService.list(null);
//        List<Inform> informList = new ArrayList<>();
//        for (User user : list) {
//            Integer userId = user.getUserId();
//            Inform newInform = new Inform();
//            newInform.setInformedUserId(userId);
//            newInform.setInformTitle(informTitle);
//            newInform.setInformContent(informContent);
//            informList.add(newInform);
//        }
//
//        return false;
//    }
}
